const express = require('express');
const app = express();
app.use(express.static('public'))

app.get('/response',(req,res)=>{
    let data = '响应数据'

    // data = {id:1,name:'张三'}
    // // data = [123,'zhagnsan ']
    // // res.send(data)
    // res.json(data)


    res.sendFile(__dirname + './admin.html')


})



app.listen('8787',()=>{
    console.log('服务已启动:http://localhost:8787')
})